﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="danhsachdonhang.aspx.cs"
    Inherits="Cucre.danhsachdonhang" Title="MUARE.VN - Danh sách đơn hàng" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="padding-left: 6px;">
        <div class="clear">
        </div>
        <div class="br">
        </div>
        <div class="content_home">
            <%-- vùng thể hiện menu --%>
            <div class="ch_1 font">
                <div class="l">
                    <div class="ll">
                    </div>
                    <div class="lc">
                        <ul id="tab_menu">
                            <li id="tabmnu_1"><a href="thongtindoanhnghiep.aspx"><span class="tab_mnu_l"></span>
                                <span class="tab_mnu_c">THÔNG TIN CÁ NHÂN&nbsp;</span><span class="tab_mnu_r"></span></a></li>
                            <li id="tabmnu_4"><a href="danhsachdonhang.aspx"><span class="tab_mnu_l_curent"></span>
                                <span class="tab_mnu_c_curent">QUẢN LÝ ĐƠN ĐẶT HÀNG&nbsp;</span> <span class="tab_mnu_r_curent">
                                </span></a></li>
                            <li id="tabmnu_3"><a href="dangtinkhuyenmai.aspx"><span class="tab_mnu_l"></span><span
                                class="tab_mnu_c">ĐĂNG TIN KHUYẾN MẠI&nbsp;</span> <span class="tab_mnu_r"></span>
                            </a></li>
                        </ul>
                    </div>
                    <div class="lr">
                    </div>
                </div>
                <div class="r">
                </div>
                <div class="clear">
                </div>
            </div>
            <%-- het vung menu --%>
            <%-- vùng làm việc --%>
            <div class="ch_2">
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                            </asp:ToolkitScriptManager>
                <h3 style="margin-bottom: 20px;">
                    DANH SÁCH CÁC TIN KHUYẾN MÃI CỦA DOANH NGHIỆP</h3>
                <asp:Label ID="LabelDanhSachDonHang" runat="server" ForeColor="Red"></asp:Label>
                <div id="GridView2" align="center">
                    <asp:GridView ID="TinKhuyenMai_GridView" runat="server" AutoGenerateColumns="False"
                                        AllowPaging="True" BorderStyle="Groove" PageSize="10" 
                        onpageindexchanging="TinKhuyenMai_GridView_PageIndexChanging" 
                        onselectedindexchanging="TinKhuyenMai_GridView_SelectedIndexChanging">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="20px" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Height="20px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                        <Columns>
                                          
                                            <asp:BoundField DataField="IDPRODUCT" HeaderText="ID" ReadOnly="True" SortExpression="IDPRODUCT">
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Name_Product" HeaderText="Name" ReadOnly="True" SortExpression="Name_Product" />
                                            <asp:BoundField DataField="TIME_START" HeaderText="Time_Start" ReadOnly="True" SortExpression="TIME_START" />
                                            <asp:BoundField DataField="TIME_STOP" HeaderText="Time_Stop" ReadOnly="True" SortExpression="TIME_STOP" />
                                            <asp:BoundField DataField="PRICE" HeaderText="Price (vnd)" ReadOnly="True" SortExpression="PRICE" />
                                             <asp:BoundField DataField="RATE_DECREASE" HeaderText="Discount" ReadOnly="True" />
                                            <asp:BoundField DataField="CITY" HeaderText="City" ReadOnly="True" SortExpression="CITY" />
                                            <asp:BoundField DataField="TOTAL_ORDER" HeaderText="Total Order" ReadOnly="True" />
                                            <asp:BoundField DataField="TOTAL_MONEY" HeaderText="Total Money(vnd)" ReadOnly="True"/>
                                            <asp:CommandField SelectText="View Detail" ShowSelectButton="true" ItemStyle-Font-Underline="True"
                                                ItemStyle-BorderColor="Blue" ItemStyle-ForeColor="Blue">
                                                <ItemStyle BorderColor="Blue" Font-Underline="True" ForeColor="Blue" />
                                            </asp:CommandField>
                                           
                                        </Columns>
                                    </asp:GridView>
                    <div style="height: 10px">
                    </div>
                   
                </div>
                
                  <div style="height: 20px" align="center">  </div>
                                <div class="br">
                                    <hr />
                                </div>
                    <h3 style="margin-top: 20px" align="center">
                                    Danh Sách Các Đơn Đặt Hàng</h3>
                                <div style="height: 20px">
                                </div>
                                
                                <div align="center">
                                    <asp:GridView ID="GridView_ListOrder" runat="server" AutoGenerateColumns="False"
                                        AllowPaging="True" BorderStyle="Groove" PageSize="10" 
                                        onpageindexchanging="GridView_ListOrder_PageIndexChanging">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Height="25px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                        <Columns>
                                            <asp:BoundField DataField="IDORDER" HeaderText="ID" ReadOnly="True" SortExpression="IDORDER"
                                                ControlStyle-Width="30"></asp:BoundField>
                                            <asp:BoundField DataField="QUATITY" HeaderText="Quatity" ReadOnly="True" SortExpression="QUATITY" />
                                            <asp:BoundField DataField="PAYMENT" HeaderText="Payment(vnd)" ReadOnly="True" SortExpression="PAYMENT" />
                                            <asp:BoundField DataField="TIMEORDER" HeaderText="Time Order" ReadOnly="True" SortExpression="TIMEORDER" />
                                            <asp:BoundField DataField="STATUS" HeaderText="Status Order" ReadOnly="True" />
                                            <asp:BoundField DataField="CUSTOMER" HeaderText="Customer" ReadOnly="True" />
                                            <asp:BoundField DataField="EMAIL" HeaderText="Email" ReadOnly="True" />
                                            <asp:BoundField DataField="CMND" HeaderText="CMND" ReadOnly="True" />
                                            <asp:BoundField DataField="ADDRESS" HeaderText="Address" ReadOnly="True" />
                                        </Columns>
                                    </asp:GridView>
                                </div>
                   </ContentTemplate>
                        </asp:UpdatePanel>
                <%--hết vùng làm việc --%>
            </div>
        </div>
        <%--đường kẻ ngang phía dưới --%>
        <div style="background: url(images/temp2_3.gif) no-repeat left bottom; padding-left: 18px;
            height: 11px;">
        </div>
        <%-- --%>
    </div>
</asp:Content>
